package five;

public class Master {
    void feed(Animal animal){ //喂动物
        animal.eat();
        animal.drink();
    }
    void feed(Dog dog){ //喂动物
        dog.eat();
        dog.drink();
    }
}

